package hlhj.fhp.checkpoint.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import hlhj.fhp.checkpoint.iview.MoneyView
import hlhj.fhp.checkpoint.javaBean.MoneyBean
import hlhj.fhp.checkpoint.module.MoneyModule

/**
 * Created by Never Fear   on 2018\11\12 0012.
Never More....
 */
class MoneyPresenter :BasePresenter<MoneyModule,MoneyView>(), MoneyModule.MoneyListener {
    override fun moneyResp(moneyBean: MoneyBean) {
        view?.setMoney(moneyBean)
    }

    fun getMoney(c:Context,page:Int){
        module?.getMoney(c,page)
    }
    override fun createModule() {
        module=MoneyModule()
        module.listener=this
    }
}